package com.hxd.otc.module.login.contract;

import com.hxd.otc.module.login.bean.AccountBean;
import com.hxd.otc.module.my.bean.RegisterRequest;
import com.hxd.otc.mvp.base.IBasePresenter;
import com.hxd.otc.mvp.base.IBaseView;

/**
 * 作  者 :  胡庆岭
 * 时  间 :  2018/6/4 14:14
 * 描  述 :  ${注册 Contract}
 */
public interface RegisterContract {
    interface View extends IBaseView {
        void getVerCodeSuccess(String msg);

        void registerSucceed(String string);

        void loginSucceed(AccountBean resultBean);

        void checkNewPhoneSuccess(String account, int registerMode);

        void checkNewPhoneFail(String errMessage);
    }

    interface Presenter extends IBasePresenter {
        void getVerCode(String mobile, String sessionId,String countryId);

        void getEmailCode(String mail, String sessionId);

        void login(String account, String password);

        void register(RegisterRequest registerRequest);

        void findUser(String account, int registerMode);
    }
}
